Placing Hyperlinks, Mail-to Links, and FTP Links on a Form

Description

There are two easy ways to put hyperlinks, mail-to links, and FTP links on a form.

Hyperlinks and Mail-to Links

Any type-in box that contains character data, either bound to a field in a table or generated by a calculated value, can be formatted as URL or Email.

  1. Right click the control.

  2. Select Properties... to display the Setup tab.

  3. Select "URL" or "Email" in the Field Type list.

Another approach is to use the OnClick event of a form object to execute the Xbasic that will open a URL. For example:

  1. Select the Button '-' tool from the Toolbar.

  2. Draw the shape of a button on the form.

  3. Enter the Label of the button.

  4. Select Use Xbasic Editor and click Next >.

  5. Enter the following code (substituting the URL or Email address you want to use) and click Finish.

    sys_resolve_url("http://www.google.com")
    sys_resolve_url("mailto:[email protected]")

FTP Links

Alpha Anywhere provides functions for making FTP transfers. If you wanted to send a file at the click of a button, you could do this:

  1. Select the Button '-' tool from the Toolbar.

  2. Draw the shape of a button on the form.

  3. Enter the Label of the button.

  4. Select Use Xbasic Editor and click Next >.

  5. Enter the following code (substituting your FTP details) and click Finish.

    ftp_put_file("www.alphasoftware.com", "alpha5", "password", 
    					"c:\learningcenter.asp","/technical_documentation/learningcenter.asp")

See Also